import axios from 'axios'


//定义接口访问前缀
// axios.defaults.baseURL="http://localhost:8080";
axios.defaults.baseURL = "http://localhost:8080";

export function doPost(url ,data){
    return axios({
       method:"post",
       url:url,
       data:data,
       dataType:"json"
    })
}
